<?php
    $txt = '';
    if (isset($_SESSION['num'])) {
        $txt = "You are successful register. Your number is № {$_SESSION['num']}";
    } elseif (isset($_SESSION['dataClient'])) {
        $data = unserialize($_SESSION['dataClient']);
        $txt = "<div><strong>Имя: </strong>{$data['name']}</div>";
        $txt .= "<div><strong>ИНН: </strong>{$data['inn']}</div>";
        $txt .= "<div><strong>Телефон: </strong>{$data['phone']}</div>";
        $txt .= "<div><strong>Номер счета: </strong>{$data['order']}</div>";
    } elseif (isset($_SESSION['addSum'])) {
        $txt = "<div><strong>Сумма на счету: </strong>".$_SESSION['addSum']."</div>";
    } elseif (isset($_SESSION['removeSum'])) {
        $txt = "<div><strong>Сумма на счету: </strong>".$_SESSION['removeSum']."</div>";
    } elseif (isset($_SESSION['orderNum'])) {
        $txt = "<div><strong>Баланс: </strong>".$_SESSION['orderNum']."</div>";
    }
    echo $txt;
session_destroy();
